package com.dumplings;

public class Person extends Thread{
    private String name;
    private int num;

    public Person(String name) {
        this.name = name;
    }

    public void eat() {
        num++;
        System.out.println(name + "吃饺子，目前吃了"+num+"个");
    }

}
